import re

a = input()

#*********** Begin **********#
result = re.findall(r'\S+(?<=\S)(?=ing)(?!inging)', a)
#*********** End **********#
print(result)
